/**
 * 功能描述
 */
define(function (require, exports, module) {
    //引入视图基类
    var ELView = require("elview");

    //assets
    var template = require("./assets/tpl/returncardcharge_main.tpl");
    require("./assets/css/returncardcharge_main.css");

    //business

    //component
    var returnChargeSubnavComp = require("./component/returnChargeSubnavComp");
    var returnChargeGridComp = require("./component/returnChargeGridComp");
    var backCardFormComp = require("./component/backCardFormComp");
    var backCardCouponGrid = require("./component/backCardCouponGrid");
    var backCardApplicateGrid = require("./component/backCardApplicateGrid");

    var constant = require("./constant/returnChargeConstant");

    //handler
    var service = require("./service/backCardSvc");
    var handler = require("./handler/gridEvents");

    //store

    var App = ELView.extend({
        attrs: {
            template: template
        },
        handler:handler,
        constant:constant,
        service:service,
        initComponent: function (params, widget) {
        	returnChargeSubnavComp.initComponent(params, widget);
        	returnChargeGridComp.initComponent(params, widget);
        	backCardFormComp.initComponent(params, widget);
        	backCardCouponGrid.initComponent(params, widget);
        	backCardApplicateGrid.initComponent(params, widget);
        },
        afterInitComponent: function (params, widget) {
            
        }
    });

    module.exports = App;
});
